import { ALType, MgrDef } from "../const/ModelConst";
import SceneMgr from "../manager/SceneMgr";
import MD from "../MD";
import ModelHelper from "./ModelHelper";

export default class ModelServer implements ISceneServer {


    constructor() {

    }

    mountedMainScene(): void {
        let mgr = MD.mgr[MgrDef.SCENE_MGR] as SceneMgr;
        mgr.mountedMainScene();
    }

    updateALByType(type: number, data: any): void {
        console.log('获取' + type + '数据' + data);

        ModelHelper['update' + type](data);
    }

    resetCameraPosition(): void {
        let mgr = MD.mgr[MgrDef.SCENE_MGR] as SceneMgr;
        mgr.resetCameraPosition();
    }
}